import util from "../../utils/util.js";

/** 获取结算数据 */
export function SettleDetail(params) {
  return util.request({
    url: "/order/preConfirm",
    method: 'post',
    params,
  })
}

/* 提交订单 */
export function CommitOrder(params) {
  return util.request({
    url: "/order/add",
    method: 'post',
    params,
  })
}

/** 发票抬头信息列表 */
export function InvoiceLists(params) {
  return util.request({
    url: "/account/invoice/accountInvoiceList",
    method: 'post',
    params,
  })
}

/** 添加发票抬头 */
export function AddInvoice(params) {
  return util.request({
    url: "/account/invoice/add",
    method: 'post',
    params,
  })
}

/** 编辑发票抬头 */
export function EditInvoice(params) {
  return util.request({
    url: "/account/invoice/update",
    method: 'post',
    params,
  })
}

/** 删除发票抬头 */
export function DeleteInvoice(params) {
  return util.request({
    url: "/account/invoice/delete",
    method: 'post',
    params,
  })
}
